// ========== 示例 ========== //
/** 计数状态 */
export type CountStateType = {
  count: number
}
/** 计数状态触发函数 */
export type CountStateActionType = {
  addCount: () => void
}

// ========== 语言 ========== //
/** 语言类型 */
export type LanguageType = 'zh-CN' | 'en-US'
/** 语言状态 */
export type LanguageStateType = {
  language: LanguageType
}
/** 语言状态触发函数 */
export type LanguageStateActionType = {
  setLanguage: (language: LanguageType) => void
  resetLanguage: () => void
}

// ========== 主题 ========== //
/** 主题类型 */
export type ThemeType = 'light' | 'dark' | 'red' | 'green' | 'blue' | 'gold' | 'default'
/** 主题状态 */
export type ThemeStateType = {
  theme: ThemeType
}
/** 主题状态触发函数 */
export type ThemeStateActionType = {
  setTheme: (theme: ThemeType) => void
  resetTheme: () => void
}

// ========== 元数据 ========== //
/** 元数据状态 */
export type MetaStateType = {
  meta: {
    title: string
    keywords: string
    description: string
  }
}
/** 元数据状态触发函数 */
export type MetaStateActionType = {
  setMeta: (title: string, keywords?: string, description?: string) => void
}

// ========== 菜单 ========== //
/** 菜单键状态 */
export type MenuStateType = {
  menuKey: string
}
/** 菜单键状态触发函数 */
export type MenuStateActionType = {
  setMenuKey: (menuKey: string) => void
}


